from php4dvd.pages.page import Page


class AddMoviePage(Page):

    @property
    def add_movie_form(self):
        return self.driver.find_element_by_class_name("addmovie")

    @property
    def title_field(self):
        return self.driver.find_element_by_name("name")

    @property
    def year_field(self):
        return self.driver.find_element_by_name("year")

    @property
    def save_button(self):
        return self.driver.find_element_by_xpath("//img[@title='Save']")